
<form name="editForm" role="form" novalidate ng-submit="vm.save()">

    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                ng-click="vm.clear()">&times;</button>
        <h4 class="modal-title" id="myWcProductLabel" data-translate="byibserverApp.wcProduct.home.createOrEditLabel">Create or edit a Wc Product</h4>
    </div>
    <div class="modal-body">
        <jhi-alert-error></jhi-alert-error>
        <div class="form-group" ng-show="vm.wcProduct.id">
            <label for="id" data-translate="global.field.id">ID</label>
            <input type="text" class="form-control" id="id" name="id"
                    ng-model="vm.wcProduct.id" readonly />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.image" for="field_image">Image</label>
            <button class="btn btn-primary hide-input">
                选择图片
                <input type="file"  name="wcProduct"  select-img="vm.wcProduct.image" loading="vm.wcProduct.imgLoading1" loading-success="vm.wcProduct.imgLoadSuceess1" accept="image/jpeg,image/png,image/jpg" />
            </button>
            <div class="img-placeholder">
                <img ng-src="{{vm.wcProduct.image}}" alt="">
                <span  ng-show="vm.wcProduct.imgLoadSuceess1" style="color: #FE7F7F;margin-left: 10px">上传成功！</span>
            </div>
            <div class="loading-img" ng-show="vm.wcProduct.imgLoading1"><img src="content/images/loading.gif" alt="">图片上传中...</div>
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.name" for="field_name">Name</label>
            <input type="text" class="form-control" name="name" id="field_name"
                    ng-model="vm.wcProduct.name"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.score" for="field_score">Score</label>
            <input type="text" class="form-control" name="score" id="field_score"
                    ng-model="vm.wcProduct.score"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.age" for="field_age">Age</label>
            <input type="text" class="form-control" name="age" id="field_age"
                    ng-model="vm.wcProduct.age"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.insuredWay" for="field_insuredWay">Insured Way</label>
            <input type="text" class="form-control" name="insuredWay" id="field_insuredWay"
                    ng-model="vm.wcProduct.insuredWay"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.renewalMethod" for="field_renewalMethod">Renewal Method</label>
            <input type="text" class="form-control" name="renewalMethod" id="field_renewalMethod"
                    ng-model="vm.wcProduct.renewalMethod"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.guaranteeInfo1" for="field_guaranteeInfo1">Guarantee Info 1</label>
            <input type="text" class="form-control" name="guaranteeInfo1" id="field_guaranteeInfo1"
                    ng-model="vm.wcProduct.guaranteeInfo1"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.guaranteeInfo2" for="field_guaranteeInfo2">Guarantee Info 2</label>
            <input type="text" class="form-control" name="guaranteeInfo2" id="field_guaranteeInfo2"
                    ng-model="vm.wcProduct.guaranteeInfo2"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.guaranteeInfo3" for="field_guaranteeInfo3">Guarantee Info 3</label>
            <input type="text" class="form-control" name="guaranteeInfo3" id="field_guaranteeInfo3"
                    ng-model="vm.wcProduct.guaranteeInfo3"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.guaranteeInfo4" for="field_guaranteeInfo4">Guarantee Info 4</label>
            <input type="text" class="form-control" name="guaranteeInfo4" id="field_guaranteeInfo4"
                    ng-model="vm.wcProduct.guaranteeInfo4"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.guaranteeInfo5" for="field_guaranteeInfo5">Guarantee Info 5</label>
            <input type="text" class="form-control" name="guaranteeInfo5" id="field_guaranteeInfo5"
                    ng-model="vm.wcProduct.guaranteeInfo5"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.guaranteeImg" for="field_guaranteeImg">Guarantee Img</label>
            <button class="btn btn-primary hide-input">
                选择图片
                <input type="file"  name="wcProduct"  select-img="vm.wcProduct.guaranteeImg" loading="vm.wcProduct.imgLoading2" loading-success="vm.wcProduct.imgLoadSuceess2" accept="image/jpeg,image/png,image/jpg" />
            </button>
            <div class="img-placeholder">
                <img ng-src="{{vm.wcProduct.guaranteeImg}}" alt="">
                <span  ng-show="vm.wcProduct.imgLoadSuceess2" style="color: #FE7F7F;margin-left: 10px">上传成功！</span>
            </div>
            <div class="loading-img" ng-show="vm.wcProduct.imgLoading2"><img src="content/images/loading.gif" alt="">图片上传中...</div>
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.premiumBudgetInfo" for="field_premiumBudgetInfo">Premium Budget Info</label>
            <input type="text" class="form-control" name="premiumBudgetInfo" id="field_premiumBudgetInfo"
                    ng-model="vm.wcProduct.premiumBudgetInfo"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.premiumImg" for="field_premiumImg">Premium Img</label>
            <button class="btn btn-primary hide-input">
                选择图片
                <input type="file"  name="wcProduct"  select-img="vm.wcProduct.premiumImg" loading="vm.wcProduct.imgLoading3" loading-success="vm.wcProduct.imgLoadSuceess3" accept="image/jpeg,image/png,image/jpg" />
            </button>
            <div class="img-placeholder">
                <img ng-src="{{vm.wcProduct.premiumImg}}" alt="">
                <span  ng-show="vm.wcProduct.imgLoadSuceess3" style="color: #FE7F7F;margin-left: 10px">上传成功！</span>
            </div>
            <div class="loading-img" ng-show="vm.wcProduct.imgLoading3"><img src="content/images/loading.gif" alt="">图片上传中...</div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.evaluation" for="field_evaluation">Evaluation</label>
            <input type="text" class="form-control" name="evaluation" id="field_evaluation"
                    ng-model="vm.wcProduct.evaluation"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.evaluationInfo" for="field_evaluationInfo">Evaluation Info</label>
            <input type="text" class="form-control" name="evaluationInfo" id="field_evaluationInfo"
                    ng-model="vm.wcProduct.evaluationInfo"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.ranking" for="field_ranking">Ranking</label>
            <input type="text" class="form-control" name="ranking" id="field_ranking"
                    ng-model="vm.wcProduct.ranking"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.costEffective" for="field_costEffective">Cost Effective</label>
            <input type="text" class="form-control" name="costEffective" id="field_costEffective"
                    ng-model="vm.wcProduct.costEffective"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.costEffectiveInfo" for="field_costEffectiveInfo">Cost Effective Info</label>
            <input type="text" class="form-control" name="costEffectiveInfo" id="field_costEffectiveInfo"
                    ng-model="vm.wcProduct.costEffectiveInfo"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.deductible" for="field_deductible">Deductible</label>
            <input type="text" class="form-control" name="deductible" id="field_deductible"
                    ng-model="vm.wcProduct.deductible"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.deductibleInfo" for="field_deductibleInfo">Deductible Info</label>
            <input type="text" class="form-control" name="deductibleInfo" id="field_deductibleInfo"
                    ng-model="vm.wcProduct.deductibleInfo"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.renewal" for="field_renewal">Renewal</label>
            <input type="text" class="form-control" name="renewal" id="field_renewal"
                    ng-model="vm.wcProduct.renewal"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.renewalInfo" for="field_renewalInfo">Renewal Info</label>
            <input type="text" class="form-control" name="renewalInfo" id="field_renewalInfo"
                    ng-model="vm.wcProduct.renewalInfo"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.advantage" for="field_advantage">Advantage</label>
            <input type="text" class="form-control" name="advantage" id="field_advantage"
                    ng-model="vm.wcProduct.advantage"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.disadvantages" for="field_disadvantages">Disadvantages</label>
            <input type="text" class="form-control" name="disadvantages" id="field_disadvantages"
                    ng-model="vm.wcProduct.disadvantages"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.suitableFortc" for="field_suitableFortc">Suitable Fortc</label>
            <input type="text" class="form-control" name="suitableFortc" id="field_suitableFortc"
                    ng-model="vm.wcProduct.suitableFortc"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.tFirst1" for="field_tFirst1">T First 1</label>
            <input type="text" class="form-control" name="tFirst1" id="field_tFirst1"
                    ng-model="vm.wcProduct.tFirst1"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.tFirst1Info" for="field_tFirst1Info">T First 1 Info</label>
            <input type="text" class="form-control" name="tFirst1Info" id="field_tFirst1Info"
                    ng-model="vm.wcProduct.tFirst1Info"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.tFirst2" for="field_tFirst2">T First 2</label>
            <input type="text" class="form-control" name="tFirst2" id="field_tFirst2"
                    ng-model="vm.wcProduct.tFirst2"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.tFirst2Info" for="field_tFirst2Info">T First 2 Info</label>
            <input type="text" class="form-control" name="tFirst2Info" id="field_tFirst2Info"
                    ng-model="vm.wcProduct.tFirst2Info"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.exemptionClauseFile" for="field_exemptionClauseFile">Exemption Clause File</label>
            <div>

                <div class="btn btn-primary hide-input">
                    上传免责条款
                    <input type="file"  name="productImg" nv-file-select uploader="uploader"/>
                </div>
                <br/>
                <br/>
                <div ng-repeat="item in uploader.queue">
                    <div style="margin-bottom: 5px">
                        文件名：
                        <strong style="font-size: 18px">{{item.file.name}}</strong> &nbsp;&nbsp;&nbsp;
                        <span ng-show="item.isSuccess"style="color:#3EC6AB">恭喜！！上传成功！！！</span>
                        <span ng-show="item.isError" style="color:#AA0000">额....上传失败...</span>
                    </div>
                    <div class="btn btn-default hide-input" ng-click="item.upload()">上传</div>
                </div>

            </div>
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.tSencond1" for="field_tSencond1">T Sencond 1</label>
            <input type="text" class="form-control" name="tSencond1" id="field_tSencond1"
                    ng-model="vm.wcProduct.tSencond1"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.tSencond1Info" for="field_tSencond1Info">T Sencond 1 Info</label>
            <input type="text" class="form-control" name="tSencond1Info" id="field_tSencond1Info"
                    ng-model="vm.wcProduct.tSencond1Info"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.tSencond2" for="field_tSencond2">T Sencond 2</label>
            <input type="text" class="form-control" name="tSencond2" id="field_tSencond2"
                    ng-model="vm.wcProduct.tSencond2"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.tSencond2Info" for="field_tSencond2Info">T Sencond 2 Info</label>
            <input type="text" class="form-control" name="tSencond2Info" id="field_tSencond2Info"
                    ng-model="vm.wcProduct.tSencond2Info"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.contract" for="field_contract">Contract</label>
            <!--<input type="text" class="form-control" name="contract" id="field_contract"-->
                    <!--ng-model="vm.wcProduct.contract"-->
                    <!--/>-->
            <div>

                <div class="btn btn-primary hide-input">
                    上传原文合同
                    <input type="file"  name="contract" nv-file-select uploader="contract_uploader"/>
                </div>
                <br/>
                <br/>
                <div ng-repeat="item in contract_uploader.queue">
                    <div style="margin-bottom: 5px">
                        文件名：
                        <strong style="font-size: 18px">{{item.file.name}}</strong> &nbsp;&nbsp;&nbsp;
                        <span ng-show="item.isSuccess"style="color:#3EC6AB">恭喜！！上传成功！！！</span>
                        <span ng-show="item.isError" style="color:#AA0000">额....上传失败...</span>
                    </div>
                    <div class="btn btn-default hide-input" ng-click="item.upload()">上传</div>
                </div>

            </div>
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.tThird1" for="field_tThird1">T Third 1</label>
            <input type="text" class="form-control" name="tThird1" id="field_tThird1"
                    ng-model="vm.wcProduct.tThird1"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.tThird1Info" for="field_tThird1Info">T Third 1 Info</label>
            <input type="text" class="form-control" name="tThird1Info" id="field_tThird1Info"
                    ng-model="vm.wcProduct.tThird1Info"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.tThird2" for="field_tThird2">T Third 2</label>
            <input type="text" class="form-control" name="tThird2" id="field_tThird2"
                    ng-model="vm.wcProduct.tThird2"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.tThird2Info" for="field_tThird2Info">T Third 2 Info</label>
            <input type="text" class="form-control" name="tThird2Info" id="field_tThird2Info"
                    ng-model="vm.wcProduct.tThird2Info"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.online" for="field_online">Online</label>
            <input type="text" class="form-control" name="online" id="field_online"
                    ng-model="vm.wcProduct.online"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.claimsService" for="field_claimsService">Claims Service</label>
            <input type="text" class="form-control" name="claimsService" id="field_claimsService"
                    ng-model="vm.wcProduct.claimsService"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.claimsServiceInfo" for="field_claimsServiceInfo">Claims Service Info</label>
            <input type="text" class="form-control" name="claimsServiceInfo" id="field_claimsServiceInfo"
                    ng-model="vm.wcProduct.claimsServiceInfo"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.premiumThumbnail" for="field_premiumThumbnail">Premium Thumbnail</label>
            <button class="btn btn-primary hide-input">
                选择图片
                <input type="file"  name="wcProduct"  select-img="vm.wcProduct.premiumThumbnail" loading="vm.wcProduct.imgLoading4" loading-success="vm.wcProduct.imgLoadSuceess4" accept="image/jpeg,image/png,image/jpg" />
            </button>
            <div class="img-placeholder">
                <img ng-src="{{vm.wcProduct.premiumThumbnail}}" alt="">
                <span  ng-show="vm.wcProduct.imgLoadSuceess4" style="color: #FE7F7F;margin-left: 10px">上传成功！</span>
            </div>
            <div class="loading-img" ng-show="vm.wcProduct.imgLoading4"><img src="content/images/loading.gif" alt="">图片上传中...</div>
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.wcProduct.purchaseLink" for="field_purchaseLink">Purchase Link</label>
            <input type="text" class="form-control" name="purchaseLink" id="field_purchaseLink"
                    ng-model="vm.wcProduct.purchaseLink"
                    />
        </div>

        <div class="form-group">
            <label data-translate="byibserverApp.wcProduct.wcIsurer" for="field_wcIsurer">Wc Isurer</label>
            <select class="form-control" id="field_wcIsurer" name="wcIsurer" ng-model="vm.wcProduct.wcIsurerId" ng-options="wcIsurer.id as wcIsurer.name for wcIsurer in vm.wcisurers"            >
                <option value=""></option>
            </select>
        </div>
        <div class="form-group">
            <label data-translate="byibserverApp.wcProduct.wcInsuranceCategory" for="field_wcInsuranceCategory">Wc Insurance Category</label>
            <select class="form-control" id="field_wcInsuranceCategory" name="wcInsuranceCategory" ng-model="vm.wcProduct.wcInsuranceCategoryId" ng-options="wcInsuranceCategory.id as wcInsuranceCategory.name for wcInsuranceCategory in vm.wcinsurancecategories"            >
                <option value=""></option>
            </select>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="vm.clear()">
            <span class="glyphicon glyphicon-ban-circle"></span>&nbsp;<span data-translate="entity.action.cancel">Cancel</span>
        </button>
        <button type="submit" ng-disabled="editForm.$invalid || vm.isSaving" class="btn btn-primary">
            <span class="glyphicon glyphicon-save"></span>&nbsp;<span data-translate="entity.action.save">Save</span>
        </button>
    </div>
</form>
